<template>
  <table cellpadding="0"  cellspacing="0" class="oa-classify__table">
    <tr class="oa-classify__hd">
      <td>业务流程</td>
      <td style="width:60px">操作</td>
    </tr>
    <tr v-for=" ( item, index ) in ywlist " :key="index" class="sp-section__list-group">
      <td @click="router(item)">{{item.name}}</td>
      <td>
        <el-button type="primary" @click="router(item)">新建</el-button>
      </td>
    </tr>
  </table>
</template>
<script>

export default {
  props: ['ywlist'],
  methods: {
    router (item) {
      console.log(JSON.stringify(item))
      window.localStorage.setItem('approve', JSON.stringify(item))
      this.$router.push({ name: 'oaMain', query: { from: 'new', active: 2 } })
    }
  },
  create () {
    console.log(ywlist)
  }
}
</script>
